package com.cqch.dao;

import com.cqch.pojo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;



public interface UserRepository extends JpaRepository<User,Integer> {

    User findByMail(String mail); //通过邮箱

    User findByLoginName(String loginName); //登录名

    User findByPhone(String phone);//通过手机号


}
